package cate.game.role.task.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBTask;
import cate.game.role.Role;
import easy.java.dev.note.NoteField;

import java.util.Map;

@ClientMsg(title = "领取每周活跃宝箱奖励 の 返回")
public class TaskWeeklyBoxResp implements MsgOutput {
    public TaskWeeklyBoxResp() {
    }

    @NoteField(value = "宝箱领取情况", detail = "Map<宝箱ID, 是否领取>")
    public Map<Integer, Boolean> rewardGot;

    public TaskWeeklyBoxResp(Role role) {
        this.rewardGot = role.getTask().weekly.rewardGot;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTask.WEEKLY_BOX_RESP;
    }
}
